import request from '@/utils/request'

export function getAppTask(data) {
	return request({
		'url': '/task/getAppTask',
		'method': 'post',
		data
	})
}

export function getTaskInfo(id) {
	return request({
		'url': '/task/getTaskInfo',
		'method': 'get',
		data: {
			id
		}
	})
}

export function updateTask(processedBy, telPhone, content, taskId, processedImg) {
	const data = {
		processedBy,
		telPhone,
		content,
		taskId,
		processedImg
	}
	return request({
		'url': '/task/updateTask',
		'method': 'post',
		data
	})
}